package com.ruoyi.controller;

import com.ruoyi.entity.DTO.T10DTO;
import com.ruoyi.entity.VO.T10TVO;
import com.ruoyi.service.IT10TService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.List;

/**
 * 充值记录Controller
 *
 * @author ruoyi
 * @date 2024-08-02
 */
@RestController
@RequestMapping("/YYDRechargeHistory/YYDRechargeHistory")
public class T10TController extends BaseController
{
    @Autowired
    private IT10TService t10Service;

    /**
     * 查询充值记录列表
     */
    @PreAuthorize("@ss.hasPermi('YYDRechargeHistory:YYDRechargeHistory:list')")
    @GetMapping("/list")
    public TableDataInfo list(T10DTO t10DTO)
    {
        startPage();
        List<T10TVO> list = t10Service.selectT10List(t10DTO);
        return getDataTable(list);
    }
}
